package com.dotflat.check.domain;


import com.dotflat.rest.domain.AreableObjectBase;
import com.dotflat.util.UuidUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 考勤机关联卡
 */
@Entity
@Table(name = "c_check_card")
@lombok.Data
@EqualsAndHashCode(callSuper = true)
public class CheckCard extends AreableObjectBase
{
    @Column(columnDefinition = "varchar(32) COMMENT '用户id ' ")
    private String userId;

    @Column(columnDefinition = "int default 1 COMMENT '关联用户类型,幼儿1  员工2  家长3'")
    private int type = 1;

    @Column(columnDefinition = "varchar(32) COMMENT '卡号' ")
    private String cardNo;

    @Column(columnDefinition = "varchar(32) COMMENT '卡内码' ")
    private String cardCode;

    @Column(columnDefinition = "int default 0  COMMENT '状态0待激活1已激活' ")
    private int status;

    @Column(columnDefinition = "varchar(255) COMMENT '用途类型' ")
    private String purposeType;

    @Column(columnDefinition = "varchar(255) COMMENT '芯片类型' ")
    private String chipType;

    @Column(columnDefinition = "varchar(32) COMMENT '关联用户id，家长卡关联宝宝' ")
    private String relationUserId;
}
